package com.xiaotao.utils;

import lombok.Getter;


@Getter
public enum ResponseEnum {
    OK(200,"操作成功"),
    FAIL(500,"失败"),
    //用户相关状态码可以用10xx
    USER_LOGIN_SUCCESS(1000,"登陆成功"),
    USER_LOGIN_ERROR_1(1001,"用户名不存在"),
    USER_LOGIN_ERROR_2(1002,"用户名存在，密码不对"),
    USER_LOGIN_ERROR_3(1003,"账户被ban"),
    USER_LOGIN_ERROR_4(1004,"用户名或密码不能为空"),
    USER_LOGIN_MISSING(1004,"用户未登录"),
    BOOK_REQUEST_ERROR(2001,"非正常请求"),
    SYS_BUSY(2002,"系统繁忙，请稍后");

    private Integer code;
    private String msg;
    ResponseEnum(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

}
